package com.yunkeji.framework.config.properties;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * api解密属性配置类
 *
 * @author wdhcr
 */
@Data
@ToString
@ConfigurationProperties(prefix = "apidecrypt")
@Configuration
@EnableConfigurationProperties(ApiDecryptProperties.class)
public class ApiDecryptProperties {
    /** 全局密开关 */
    private Boolean enabled;
    /** 响应加密开关 */
    private Boolean resenabled;
    /** 头部标识 */
    private String headerFlag;
    /** 响应加密公钥 */
    private String publicKey;
    /** 请求解密私钥 */
    private String privateKey;
    /** Api过期时间 */
    private Long expireApi;
}
